<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .container{
            width: 200px;
            height: 200px;
            text-align: center;
            background: lightgreen;
            line-height: 200px;
            /* overflow: hidden; */
        }
        .box{
            display: inline-block;
            line-height: normal;
            font-size: 1rem;
            vertical-align: middle;
            background: pink;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="box">我要水平垂直居中是快递分拣时空裂缝第三方我要水平垂直居中是快递分拣时空裂缝第三方我要水平垂直居中是快递分拣时空裂缝第三方</div>
    </div>
</body>
</html>